package com.xiaoshuidi.cloud.module.iot.infrastructure.remote.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ：baohanzhong
 * @date ：Created 2024/8/22 13:59
 * @description：
 */
@NoArgsConstructor
@Data
public class OpenLogsDTO {


    /**
     * logs
     */
    private List<LogsDTO> logs;
    /**
     * total
     */
    private Integer total;

    /**
     * LogsDTO
     */
    @NoArgsConstructor
    @Data
    public static class LogsDTO {
        /**
         * media_infos
         */
        private List<MediaInfosDTO> media_infos;
        /**
         * nick_name
         */
        private String nick_name;
        /**
         * status
         */
        private StatusDTO status;
        /**
         * unlock_name
         */
        private String unlock_name;
        /**
         * update_time
         */
        private Long update_time;
        /**
         * user_id
         */
        private String user_id;

        /**
         * StatusDTO
         */
        @NoArgsConstructor
        @Data
        public static class StatusDTO {
            /**
             * code
             */
            private String code;
            /**
             * value
             */
            private String value;
        }

        /**
         * MediaInfosDTO
         */
        @NoArgsConstructor
        @Data
        public static class MediaInfosDTO {
            /**
             * file_key
             */
            private String file_key;
            /**
             * file_url
             */
            private String file_url;
        }
    }
}
